package cn.hiapi.shopkeeper.entity.activity;

import cn.hiapi.basic.entity.BasicEntity;
import cn.hiapi.basic.serializer.LongToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * @author AdinZ
 * @date 2023/2/21 12:53
 */
@Setter
@Getter
public class ActivityExpand extends BasicEntity {

    private Long id;

    @ApiModelProperty("活动id")
    private long aid;
    @ApiModelProperty("店铺id")
    private long shopId;

    @ApiModelProperty("价格")
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal price = BigDecimal.ZERO;


    @ApiModelProperty("活动详情")
    @Column(columnDefinition = "text")
    private String body;

    @ApiModelProperty("商品名称")
    private String title;

    @ApiModelProperty("库存数量")
    private int stockNum;
}
